<?php
/**
 * Created by PhpStorm.
 * User: 17828
 * Date: 2018/5/23
 * Time: 15:43
 */
namespace app\common\validate;


use think\Validate;

class Drivemanage extends Validate
{
    protected $rule = [
        "drive_name"=>"require",
        "drive_tel"=>"require",
        "drive_card"=>"require",
        "drive_sex"=>"require",
        "store_id"=>"require",
        "drive_type"=>"require",
    ];
    protected $message = [
        "drive_name.require"=>"请填写名称",
        "drive_tel.require"=>"请填写电话",
        "drive_card.require"=>"请填写身份证号",
        "drive_sex.require"=>"请选择性别",
        "store_id.require"=>"请选择所属公司",
        "drive_type.require"=>"请选择类型",
    ];
    protected $scene = [
        "adddrive"=>"drive_name,drive_tel,drive_card,drive_sex,store_id,drive_type",
    ];

}